
<!--  / banner  -->
<div class="banner"> 
	<div class="bannerImg">
		<img class="hidden-xs" src="__CDN__{$ads.image}" alt="" width="100%">
		<img class="visible-xs" src="__CDN__{$ads.image_wap}" alt="" width="100%">
	</div>
<!--	<div class="bannerTxt container">-->
<!--		<h6>海量网站等你选择</h6>-->
<!--		<p>拥有一个属于您得高品质网站，从现在开始</p>-->
<!--	</div>-->
</div>
<!--  / banner  -->

<!--  / warpper  -->
<main class="warpper"> 
	
	<div class="aboutSec1 padding80">
		<div class="container">
			<ul class="aboutSec1_list">
				<li>
					<h6><span data-number="10" id="number1">0</span>+</h6>
					<p>行业工作经验</p>
				</li>
				<li>
					<h6><span data-number="2690" id="number2">0</span>+</h6>
					<p>来自个领域合作客户</p>
				</li>
				<li>
					<h6><span data-number="98" id="number3">0</span><span>%</span>+</h6>
					<p>客户续费率</p>
				</li>
			</ul>
		</div>
	</div>

	<div class="aboutSec2 padding80">
		<div class="container">
			<div class="aboutSec2_con">
				<div class="aboutSec2_img">
					<img src="__CDN__/home/images/aboutSec2_img.jpg" alt="" width="100%">
				</div>
				<div class="aboutSec2_txt">
					<h6>ABOUT US<span>/关于我们</span></h6>
					<p>{$Think.config.site.company_about|htmlentities}</p>
				</div>
			</div>
		</div>
	</div>

	{notempty name='$about_purpose'}
	<div class="aboutSec3 padding80">
		<div class="container">
			<div class="comment_title">
				<h6>我们的宗旨</h6>
			</div>
			<ul class="aboutSec3_list marginTop60 transitionDelay2">
				{foreach $about_purpose as $vo}
				<li>
					<img src="__CDN__{$vo.image}" alt="">
					<h6>{$vo.title}</h6>
					<p>{$vo.desc}</p>
				</li>
				{/foreach}
			</ul>
		</div>
	</div>
	{/notempty}

	{notempty name='$about_certificate_honor'}
	<div class="aboutSec4 padding80">
		<div class="container">
			<div class="comment_title white">
				<h6>荣誉证书</h6>
			</div>
			<ul class="aboutSec4_list marginTop60 transitionDelay">
				{foreach $about_certificate_honor as $vo}
				<li>
					<div class="time">{$vo.date}</div>
					<h6>{$vo.title}</h6>
					<div class="line"></div>
					<p>{$vo.desc}</p>
				</li>
				{/foreach}
			</ul>
		</div>
	</div>
	{/notempty}

	{notempty name='$about_advantage'}
	<div class="aboutSec5 padding80">
		<div class="container">
			<div class="comment_title">
				<h6>我们的优势</h6>
			</div>
			<ul class="aboutSec3_list marginTop60 transitionDelay2">
				{foreach $about_advantage as $vo}
				<li>
					<img src="__CDN__{$vo.image}" alt="">
					<h6>{$vo.title}</h6>
					<p>{$vo.desc}</p>
				</li>
				{/foreach}
			</ul>
		</div>
	</div>
	{/notempty}

	<div class="aboutSec6 padding80">
		<div class="container">
			<div class="aboutSec6_con">
				<img src="__CDN__/home/images/logo2.png" alt="">
				<p>微享网络——10年高端网站定制服务——2000+服务客户——10+行业作品，多年团队经验</p>
				<a href="{:url('index/index/contact')}">联系我们</a>
			</div>
		</div>
	</div>

	{notempty name='$project'}
	<div class="aboutSec7">
		<div class="swiper-container aboutSwiper">
			<div class="swiper-wrapper">
				{foreach $about_advantage as $vo}
				<div class="swiper-slide">
					<div class="aboutSec7_img">
						<img src="__CDN__{$vo.image}" alt="" width="100%">
					</div>
				</div>
				{/foreach}
			</div>
		</div>
		<a class="comment_btn marginTop60" href="{:url('index/index/case')}">查看更多</a>
	</div>
	{/notempty}

	{notempty name='$Think.config.site.company_environment'}
	<div class="aboutSec8 padding80">
		<div class="container">
			<div class="comment_title">
				<h6>公司环境</h6>
			</div>
			<ul class="aboutSec8_list marginTop60 transitionDelay hidden-xs">
				{foreach $Think.config.site.company_environment as $vo}
				<li>
					<div class="aboutSec8_img">
						<div style="background: url(__CDN__{$vo}) center/cover no-repeat;"></div>
					</div>
				</li>
				{/foreach}
			</ul>
			<div class="swiper-container aboutSwiper2 marginTop60 aboutSec8_list visible-xs">
				<div class="swiper-wrapper">
					{foreach $Think.config.site.company_environment as $vo}
					<div class="swiper-slide">
						<li>
							<div class="aboutSec8_img">
								<div style="background: url(__CDN__{$vo}) center/cover no-repeat;"></div>
							</div>
						</li>
					</div>
					{/foreach}
				</div>
			</div>
		</div>
	</div>
	{/notempty}

</main>
<!--  / warpper  --> 

<script>
$(function() {

	var aboutSwiper = new Swiper('.aboutSwiper', {
		loop: true,
		speed: 1000,
		observer: true,
		observeParents: true,
		autoplay: 1000,
		slidesPerView: 'auto',
		slidesPerGroup: 1,
		mousewheelControl : true,
		autoplayDisableOnInteraction: false,
		spaceBetween: 20,
		breakpoints: { 
		    768: {
				slidesPerView: 2,
				slidesPerGroup: 2,
				spaceBetween : 20,
		    },
		}
	})
	// 环境轮播
	var aboutSwiper2 = new Swiper('.aboutSwiper2', {
		loop: true,
		speed: 1000,
		observer: true,
		observeParents: true,
		autoplay: 1000,
		slidesPerView: 1,
		slidesPerGroup: 1,
		spaceBetween : 20,
		autoplayDisableOnInteraction: false,
	})

})

function numberAnim(){
	var num1 = 0;
	var timer1 = setInterval(function(){
		if (num1 >= $('#number1').data('number')) {
			clearInterval(timer1);
		}else{
			num1++
		}
		$('#number1').html(num1)
	},200);
	var num2 = 0;
	var timer2 = setInterval(function(){
		if (num2 >= $('#number2').data('number')) {
			clearInterval(timer2);
		}else{
			num2 += 10
		}
		$('#number2').html(num2)
	},2);
	var num3 = 0;
	var timer3 = setInterval(function(){
		if (num3 >= $('#number3').data('number')) {
			clearInterval(timer3);
		}else{
			num3++
		}
		$('#number3').html(num3)
	},20);
}

$(window).ready(function(){
	$('.headerNav li').eq(1).addClass('on');
})
$(window).load(function(){
    setTimeout(function(){
    	numberAnim();
    },1500)
})
$(window).resize(function(){
	
})

$(window).scroll(function () {
    var h = $(window).scrollTop()
    
    if (h > $('.banner').offset().top + 200 && h < $('.aboutSec1').offset().top) {
        $('.aboutSec1').addClass('on')
    } else if (h > $('.aboutSec1').offset().top + 200 && h < $('.aboutSec2').offset().top - $('.aboutSec2').outerHeight(true)/4) {
        $('.aboutSec2').addClass('on')
    } else if (h > $('.aboutSec2').offset().top + 200 && h < $('.aboutSec3').offset().top - $('.aboutSec3').outerHeight(true)/4) {
        $('.aboutSec3').addClass('on')
    } else if (h > $('.aboutSec3').offset().top + 200 && h < $('.aboutSec4').offset().top - $('.aboutSec4').outerHeight(true)/4) {
        $('.aboutSec4').addClass('on')
    } else if (h > $('.aboutSec4').offset().top + 200 && h < $('.aboutSec5').offset().top - $('.aboutSec5').outerHeight(true)/4) {
        $('.aboutSec5').addClass('on')
    } else if (h > $('.aboutSec5').offset().top + 200 && h < $('.aboutSec6').offset().top - $('.aboutSec6').outerHeight(true)/4) {
        $('.aboutSec6').addClass('on')
    } else if (h > $('.aboutSec6').offset().top + 200 && h < $('.aboutSec7').offset().top - $('.aboutSec7').outerHeight(true)/4) {
        $('.aboutSec7').addClass('on')
    } else if (h > $('.aboutSec6').offset().top + 200 && h < $('.aboutSec8').offset().top - $('.aboutSec8').outerHeight(true)/4) {
        $('.aboutSec8').addClass('on')
    }
})

</script>
